﻿using System;
using System.Data;
using System.Data.SqlClient;
using VIT.DataHelper.DataAccess;

namespace VIT.Business
{
    public class Language : Language_Base
    {
        SQLSupport sqlSupport = new SQLSupport();

        public Language(string id = "",
                        string name = "",
                        string image = "")    
        {
            this.Id = id;
            this.Name = name;
            this.Image = image;
        }

        public DataTable getList()
        {
            string strQuery = "select * from Language order by Name";
            return sqlSupport.ExecuteDataset(false, strQuery).Tables[0];
        }
    }
}
